package kr.hkit.powerjava.chapter14.windowbulider;

import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.JLabel;

public class CalPanel extends JPanel {
	private JTextField tfleft;
	private JLabel lblNewLabel;
	private JTextField tfright;
	private JLabel lblNewLabel_1;
	private JTextField tfresult;

	/**
	 * Create the panel.
	 */
	public CalPanel() {

		initialize();
	}
	private void initialize() {
		
		tfleft = new JTextField();
		add(tfleft);
		tfleft.setColumns(5);
		
		lblNewLabel = new JLabel("*");
		add(lblNewLabel);
		
		tfright = new JTextField();
		add(tfright);
		tfright.setColumns(5);
		
		lblNewLabel_1 = new JLabel("=");
		add(lblNewLabel_1);
		
		tfresult = new JTextField();
		add(tfresult);
		tfresult.setColumns(5);
	}
	
	public String getTfleft() {
		return tfleft.getText();
	}
	public void setTfleft(String text) {
		tfleft.setText(text);
	}
	
	public String getTfright() {
		return tfright.getText();
	}
	public void setTfright(String text) {
		tfright.setText(text);
	}
	public String getTfresult() {
		return tfresult.getText();
	}
	public void setTfresult(String text) {
		tfresult.setText(text);
	}
	
	
	

}
